//
//  StudenCell.m
//  ChatDemo-UI2.0
//
//  Created by zz on 16/5/19.
//  Copyright © 2016年 zz. All rights reserved.
//

#import "StudenCell.h"

@implementation StudenCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        
        _leftBtn = [UIButton buttonWithType:UIButtonTypeCustom];
        [_leftBtn setImage:[UIImage imageNamed:@"weixuanze_xsxx_2_nor"] forState:UIControlStateNormal];
        [_leftBtn setImage:[UIImage imageNamed:@"xuanze_xsxx_1_nor"] forState:UIControlStateSelected];
        _leftBtn.frame = CGRectMake(17, 11, 18, 18);
        [self.contentView addSubview:_leftBtn];
        
        _nameLabel = [[UILabel alloc] initWithFrame:CGRectMake(CGRectGetMaxX(_leftBtn.frame)+19, 11, 140, 16)];
        _nameLabel.font = [UIFont systemFontOfSize:16];
        _nameLabel.textColor = RGBACOLOR(59, 59, 59, 1);
        [self.contentView addSubview:_nameLabel];
        
        _relationLabel = [[UILabel alloc] initWithFrame:CGRectMake(SCREENWIDTH - 100, 11, 88, 16)];
        _relationLabel.font = [UIFont systemFontOfSize:16];
        _relationLabel.textAlignment = NSTextAlignmentRight;
        [self.contentView addSubview:_relationLabel];
    }
    
    return self;
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
